//
//  CDtopView.h
//  CuriosityDaily3
//
//  Created by 安林 on 16/9/23.
//  Copyright © 2016年 theBestTeam. All rights reserved.
//

#import <UIKit/UIKit.h>
//顶部视图
typedef enum : NSUInteger {
    ZFBHomeTopViewButtonTypeScan,
    ZFBHomeTopViewButtonTypePay,
    ZFBHomeTopViewButtonTypeCard,
    ZFBHomeTopViewButtonTypeXiu,
} ZFBHomeTopViewButtonType;
@class CDtopView;
// 1.协议
@protocol CDtopViewDelegate <NSObject>

// 2.协议中的方法
- (void)CDtopView:(CDtopView*)cdtopView didClickHomeTopViewButtonWithType:(ZFBHomeTopViewButtonType)type andImageName:(UIImageView *)imageView andLabel:(UILabel *)label;

@end

@interface CDtopView : UIView
@property(nonatomic,weak)UIButton *searchBar;
// 3.代理属性
@property (nonatomic, weak) id<CDtopViewDelegate> delegate;
@property(nonatomic,weak)UIImageView *imageView;
@property(nonatomic,weak)UILabel *label;

@end
